package com.excilys.capicsoubank.exception;

import com.excilys.capicsoubank.entities.Account;

/**
 * Le compte est à découvert.
 * 
 * @author Nicolas Poirier
 */
public class NegativeBalanceException extends Exception {

	private static final long serialVersionUID = -8295808754003057528L;

	public NegativeBalanceException(Account account, long futureBalance) {
		super("Account " + account.getAccountId()
				+ " will have a negative balance : " + futureBalance);
	}
}
